<template>
    <Table border :columns="columns" :data="taskItems"></Table>
</template>

<script>
    import AppFrame from '../../libs/app-frame';

    export default {
        data() {
            return {
                columns: [
                    {
                        title: '任务名称',
                        key: 'name',
                        width:250,
                        render: (h, params) => {
                            return h('div', [
                                h('Icon', {
                                    props: {
                                        type: 'person'
                                    }
                                }),
                                h('strong', params.row.name)
                            ]);
                        }
                    },
                    {
                        title: '是否在线',
                        key: 'isOnline',
                        width:100
                    },
                    {
                        title: '下次运行时间',
                        key: 'datetime',
                        width:150
                    },
                    {
                        title: '状态',
                        key: 'logs'
                    }

                ],
                taskItems:[]
            }
        },
        methods: {}
    }
</script>

<style scoped>

</style>
